<extend name="./Application/Admin/View/base.html" />
<block name="title">
	<title>
		<?php echo C(APP_NAME);?>PC端管理</title>
</block>
<block name="stylesheets">
	<link href="__PUBLIC__/assets/css/select2.css" rel="stylesheet">

</block>
<block name="stylecss">
	<style type='text/css'>
		table tr td {
			width: 80%;
		}

		table tr th {
			width: 16%;
			text-align: center;
			vertical-align: middle!important;
		}
	</style>
</block>
<block name="smallmenu">
	<ul class="breadcrumb">
		<li>
			<i class="ace-icon fa fa-home home-icon"></i>
			<a href="{:U('Index/index')}">主页</a>
		</li>
		<li>
			<a href="{:U('Examiner/index')}">考官列表</a>
		</li>
		<li class="active">添加考官信息</li>
	</ul>
	<!-- /.breadcrumb -->

	<!-- #section:basics/content.searchbox -->
	<div class="nav-search" id="nav-search"></div>
	<!-- /.nav-search -->
</block>
<block name="content">
	<form action="__CONTROLLER__/examiner_add" method='post' id='myformedit' class=" examiner_addform" enctype="multipart/form-data">
		<input type="hidden" name="action" value="examiner_add_action">
		<input type="hidden" name="addaction" value="examiner_add">
		<div class="row" style="margin-bottom:7px">
			<div class="col-xs-12"><span class="label label-purple arrowed"><i class="ace-icon fa fa-user bigger-120"></i> 将已有midiID变为考官</span></div>
		</div>
		<table class="table table-striped table-bordered table-hover">
			<tr>
				<th>midi ID</th>
				<td><input type="text" name='user_id' class="col-xs-6 nmidi_kaoguan">
					<span class="Validform_checktip">请填写正确ID</span>
				</td>
			</tr>
			<tr>
				<th>考官监考专业</th>
				<td>
					<div class="col-xs-6">
						<input type="checkbox" name="user_examiner_guitar" id="" value="1" checked="">电吉他&nbsp;&nbsp;
						<input type="checkbox" name="user_examiner_drum" id="" value="1">爵士鼓&nbsp;&nbsp;
						<input type="checkbox" name="user_examiner_bass" id="" value="1">电贝司&nbsp;&nbsp;
					</div>
					<span class="Validform_checktip">必选项</span>
				</td>
			</tr>
			<tr>
				<th>收入比例</th>
				<td><input type="text" name='user_income_proportion' class="col-xs-6 nmidi_kaoguan" placeholder="例如输入0.6 比例是60%">
				<span class="Validform_checktip">必填写</span>
				</td>
			</tr>
			<tr>
				<td colspan="2"><button type="submit" class="btn btn-pink btn-sm">提交</button> <span class="btn btn-sm" onClick="location.href='{:U('Examiner/index')}'">返回</span></td>
			</tr>
		</table>
	</form>
	<form action="__CONTROLLER__/examiner_add" method='post' id='myformedit' class=" myformedit" enctype="multipart/form-data">
		<input type="hidden" name="action" value="examiner_add_action">
		<div class="row" style="margin-bottom:7px;margin-top:30px;">
			<div class="col-xs-12"><span class="label label-warning arrowed"><i class="ace-icon fa fa-user bigger-120"></i> 新添加一个考官</span></div>
		</div>
		<table class="table table-striped table-bordered table-hover">
			<tr>
				<th>头像</th>
				<td>
					<div class="nfile_imgbox">
						<input type="file" class="nfile" id="file_upload" name="avatar" />
						<img src="__PUBLIC__/assets/images/addfile.png" id="preview">
						<a class="nimg_style">+<img src=""> </a>
					</div>
				</td>
			</tr>
			<tr>
				<th>昵称</th>
				<td><input type="text" name='user_nickname' class="col-xs-6 ninputxt">
					<span class="Validform_checktip">必填写</span>
				</td>
			</tr>
			<tr>
				<th>手机号</th>
				<td><input type="text" id="user_edit_phone" name='user_phone' class="col-xs-6 ninputxt"maxlength="11">
				<span class="Validform_checktip">必填写</span>
				</td>
			</tr>
			<tr>
				<th>邮箱</th>
				<td><input type="text" name='user_email' class="col-xs-6 ninputxt">
				<span class="Validform_checktip">必填写</span>
				</td>
			</tr>
			<tr>
				<th>姓名</th>
				<td><input type="text" name='user_name' class="col-xs-6 ninputxt">
				<span class="Validform_checktip">必填写</span>
				</td>
			</tr>
			<tr>
				<th>性别</th>
				<td><input type="radio" name="user_sex" id="" value="1" checked>男&nbsp;&nbsp;
					<input type="radio" name="user_sex" id="" value="2">女</td>
			</tr>
			<tr>
				<th>生日</th>
				<td>
					<div class="input-group col-xs-6 ">
						<input class="form-control date-picker" type="text" data-date-format="yyyy-mm-dd" name='user_birthday'>
						<span class="input-group-addon">
                <i class="fa fa-calendar bigger-110"></i>
            </span>
					</div>
				</td>
			</tr>
			<tr>
				<th>身份证号码</th>
				<td><input type="text" name='user_idcard' class="col-xs-6 ninputxt">
				<span class="Validform_checktip">必填写</span>
				</td>
			</tr>
			<tr>
				<th>城市</th>
				<td>
					<select name="user_city" id="" class="col-xs-6 ninputxt">
						<option value="">-请选择-</option>
						<?php foreach ($city_arr as $v): ?>
						<option value="{$v.city_id}">{$v.city_name}</option>
						<?php endforeach ?>
					</select>
					<span class="Validform_checktip">必填写</span>
				</td>
			</tr>
			<tr>
				<th>个人简介</th>
				<td><textarea name="user_introduction" id="" cols="60" rows="8" class="ninputxt"></textarea>
					<span class="Validform_checktip">必填写</span>

				</td>
			</tr>
			<tr>
				<th>监考范围</th>
				<td>
					<div class="col-xs-6">
					<input type="checkbox" name='user_examiner_guitar' value="1" checked="">电吉他&nbsp;&nbsp;&nbsp;
					<input type="checkbox" name='user_examiner_drum' value="1">爵士鼓&nbsp;&nbsp;&nbsp;
					<input type="checkbox" name='user_examiner_bass' value="1">电贝司&nbsp;&nbsp;&nbsp;
					</div>
				<span class="Validform_checktip">必填写</span>
				</td>
			</tr>
			<tr>
				<th>收入比例</th>
				<td><input type="text" name='user_income_proportion' class="col-xs-6 ">
				<!--<span class="Validform_checktip">必填写</span>-->
				</td>
			</tr>
			<tr>
				<th>登录密码</th>
				<td><input type="password" name='user_password' class="col-xs-6 ninputxt">
					<span class="Validform_checktip">必填写</span>
				</td>
			</tr>
			<tr>
				<td colspan="2"><button type="submit" class="btn btn-primary btn-sm" onClick="return checktelephone();">提交</button> <span class="btn btn-sm" onClick="location.href='{:U('Examiner/index')}'">返回</span></td>
			</tr>
		</table>
	</form>
</block>
<block name="scripts">
	<script src="__PUBLIC__/assets/js/select2.js"></script>
</block>
<block name="jscript">
	<script script="text/javascript">
		$(function() {
			$('#menu_user').addClass('active open');
			$('#menu_examiner_list').addClass('active');
			$('.date-picker').datepicker({
				autoclose: true,
				todayHighlight: true
			})
		});
	</script>
	<script type="text/javascript">
		$(function() {
			var demo2 = $(".examiner_addform").Validform({
				tiptype:3,
				showAllError: true,
				datatype: {
					"zh1-6": /^[\u4E00-\u9FA5\uf900-\ufa2d]{1,6}$/

				},

			});
			demo2.tipmsg.w["zh1-6"] = "请输入1到6个中文字符！";

			demo2.addRule([
			{
				ele: ".nmidi_kaoguan",
				datatype: "*"
			}, {
				ele: "select",
				datatype: "*"
			}, {
				ele: ":radio:first",
				datatype: "*"
			}

			]);


		})
	</script>

</block>